package com.ruoyi.spot.constants;

/**
 * @program: ChainUp_Monitor_Rear
 * @description:
 * @author: Saumell
 * @create: 2024-08-01 10:03
 **/
public class SpotMonitorConstants {


    /**
     * 调用WebScoket
     */
//    现货通过Websocket订阅K线
    public static final String SPOT_WEBSOCKET_KLINE_URL = "wss://ws.f4mes.com/kline-api/ws";

//    现货通过Websocket订阅订单簿
    public static final String SPOT_WEBSOCKET_ORDERBOOK_URL = "wss://ws.f4mes.com/kline-api/ws";

    //    现货通过Websocket订阅Ticker
    public static final String SPOT_WEBSOCKET_TICKER_URL = "wss://ws.f4mes.com/kline-api/ws";
    //    现货通过Websocket订阅最新成交
    public static final String SPOT_WEBSOCKET_LASTESTTRADE_URL = "wss://ws.f4mes.com/kline-api/ws";
    //    现货通过Websocket订阅历史K线
    public static final String SPOT_WEBSOCKET_HISTORYKLINE_URL = "wss://ws.f4mes.com/kline-api/ws";
    //    现货通过Websocket订阅成交记录
    public static final String SPOT_WEBSOCKET_TRANSACTION_RECORD_URL = "wss://ws.f4mes.com/kline-api/ws";


    /**
     * 调用OpenAPI - 已更新为TooBit API
     */
    //    获取所有现货交易对API
    public static final String SPOT_CURRENCY_PAIR_URL = "https://api.toobit.com/api/v1/exchangeInfo";
    //    获取现货订单簿
    public static final String SPOT_OPENAPI_ORDERBOOK = "https://api.toobit.com/api/v1/depth?limit=100&symbol={0}";

    //    获取现货Ticker
    public static final String SPOT_OPENAPI_QUOTESTICKER = "https://api.toobit.com/api/v1/ticker/24hr?symbol={0}";
    //    获取最近成交（更新为 /quote/v1/trades）
    public static final String SPOT_OPENAPI_LASTESTTRADATION = "https://api.toobit.com/quote/v1/trades?symbol={0}&limit={1}";
    //    获取K线/蜡烛图数据（更新为 /quote/v1/klines）
    public static final String SPOT_OPENAPI_KLINE = "https://api.toobit.com/quote/v1/klines?symbol={0}&interval={1}&limit={2}";
    //    下单接口
    public static final String SPOT_OPENAPI_ORDER = "https://api.toobit.com/api/v1/order";
    //订单api名称
    public static final String SPOT_OPENAPI_ORDER_Url = "/api/v1/order";




}
